<?php
/**
 * Created by PhpStorm.
 * User: tengwei
 * Date: 2018/11/22
 * Time: 9:56 AM
 */
namespace common\sources\read\area;

use common\models\craftsman\Area;
class AreaAccess implements IAreaAccess
{
    public function getArea($param){
        return Area::find()
            ->select('id,area_name,area_parent_id')
            ->where(['area_parent_id'=>$param['area_parent_id']])
            ->asArray()
            ->all();
    }
}